GetGXViewport
Mac OSThe
GetGXViewport
method returns the QuickDraw GX view port drawing structure for this canvas.
ODPlatformCanvas GetGXViewport ();
- return value
- A 32-bit value identifying the QuickDraw GX view port object for this canvas. You must cast the return value to type
gxViewPort
.DISCUSSION
If you are using QuickDraw GX for imaging, you can call this method in your part'sDraw
method or whenever you need to draw anything into a facet.If this canvas has a QuickDraw GX view port drawing structure and QuickDraw GX is installed, this method returns that view port. If this canvas has a QuickDraw window drawing structure, this method generates a new QuickDraw GX view port for this canvas using the QuickDraw drawing structure; the method then returns the new QuickDraw GX view port.
EXCEPTIONS
kODErrInvalidGraphicsSystem
- This implementation of OpenDoc does not support QuickDraw GX, QuickDraw GX is not installed or available, or this canvas has no QuickDraw GX or QuickDraw drawing structure.
SEE ALSO
TheODCanvas::GetQDPort
method (page 73).
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help